﻿namespace PasteCluster
{
    /// <summary>
    /// 内部事件
    /// </summary>
    public class PasteEventModel
    {
        /// <summary>
        /// 事件
        /// </summary>
        public PasteSloveEvent action { get; set; }

        /// <summary>
        /// 时间戳，或者随即戳?
        /// </summary>
        public long time { get; set; }

        /// <summary>
        /// 发送给某一个节点
        /// </summary>
        public string to_host { get; set; }

        /// <summary>
        /// 附带的信息
        /// </summary>
        public string message { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int msg_type { get; set; } = 0;

        /// <summary>
        /// 发送给某一个节点
        /// </summary>
        public int node_id { get; set; }

        /// <summary>
        /// 发送给某一组节点
        /// </summary>
        public int group { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 尝试次数 
        /// </summary>
        public int try_time { get; set; } = 2;
    }


}
